//
//  Otherthings.h
//  tristana
//
//  Created by 李康 on 2021/1/6.
//  Copyright © 2021 李康. All rights reserved.
//

#import <Foundation/Foundation.h>


#define ScreenHeight [[UIScreen mainScreen] bounds].size.height
#define ScreenWidth [[UIScreen mainScreen] bounds].size.width
#define isIphoneXX ([UIScreen mainScreen].bounds.size.height == 812.0||[UIScreen mainScreen].bounds.size.height == 896.0)
#define NavigationBarHeight (isIphoneXX ? 40+44 : 20+44)
#define M6Scale (ScreenWidth/375.0) //横向等比例缩放
#define TabbarHeight  ([UIScreen mainScreen].bounds.size.height == 812.0 ? 83:49)
#define GetLightFont(s) [[[UIDevice currentDevice] systemVersion] floatValue]>8.2?[UIFont fontWithName:@"PingFangSC-Light" size:s]:[UIFont systemFontOfSize:s]
#define HexColor(hex) [UIColor colorWithRed:((float)((hex & 0xFF0000) >> 16))/255.0 green:((float)((hex & 0xFF00) >> 8))/255.0 blue:((float)(hex & 0xFF))/255.0 alpha:1.0]

//字符串是否为空
#define IsStrEmpty(_ref)    (((_ref) == nil) || ([(_ref) isEqual:[NSNull null]]) || (![(_ref) isKindOfClass:[NSString class]]) ||([(_ref)isEqualToString:@""]))

//数组是否为空
#define IsArrEmpty(_ref)    (((_ref) == nil) || ([(_ref) isEqual:[NSNull null]]) ||([(_ref) count] == 0))

@interface Otherthings : NSObject


@end

